namespace planning_lite;

public class TaskItem
{
    public string Id { get; set; } = Guid.NewGuid().ToString();
    public string Title { get; set; } = "新任务";
    public string Description { get; set; } = "待添加描述";
    public bool IsCompleted { get; set; } = false;
    public bool IsObsolete { get; set; } = false;
    public DateTime CreatedDate { get; set; } = DateTime.Now;
    public DateTime? DueDate { get; set; } = DateTime.Now.AddDays(7);
    public int Priority { get; set; } = 50;
    public bool CheckNeeded { get; set; } = false;
    public DateTime? LastCheckedDate { get; set; } = DateTime.Now.AddDays(-1);
}

public class TaskData
{
    public List<TaskItem> TaskLists { get; set; } = new List<TaskItem>();
    public string UserName { get; set; } = "Guest";
}